import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/entity/requst/appconfig_setting_entity.dart';

AppconfigSettingEntity $AppconfigSettingEntityFromJson(
    Map<String, dynamic> json) {
  final AppconfigSettingEntity appconfigSettingEntity = AppconfigSettingEntity();
  final String? configKey = jsonConvert.convert<String>(json['configKey']);
  if (configKey != null) {
    appconfigSettingEntity.configKey = configKey;
  }
  final String? configValue = jsonConvert.convert<String>(json['configValue']);
  if (configValue != null) {
    appconfigSettingEntity.configValue = configValue;
  }
  return appconfigSettingEntity;
}

Map<String, dynamic> $AppconfigSettingEntityToJson(
    AppconfigSettingEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['configKey'] = entity.configKey;
  data['configValue'] = entity.configValue;
  return data;
}

extension AppconfigSettingEntityExtension on AppconfigSettingEntity {
  AppconfigSettingEntity copyWith({
    String? configKey,
    String? configValue,
  }) {
    return AppconfigSettingEntity()
      ..configKey = configKey ?? this.configKey
      ..configValue = configValue ?? this.configValue;
  }
}